const align = 'center'
const width = '180'
const isLink = true

export const chainTableOption = {
  name: 'chainTableOption',
  columns: [{
    prop: 'orgNm',
    label: '机构名称',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgId',
    label: '机构编号',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgTypeName',
    label: '机构类型',
    align,
    fixed: true,
    width: '80'
  }, {
    prop: 'getFavCreditLimit',
    label: '得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '已用得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'residueGetFavCreditLimit',
    label: '剩余得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'grantFavCreditLimit',
    label: '对外授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'usedGrantFavCreditLimit',
    label: '已用对外授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'residueGrantFavCreditLimit',
    label: '剩余对外授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedGetFavCreditLimit',
    label: '累计得到授信使用金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGetFavCreditLimit',
    label: '累计得到授信已结算金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedUnsettledGetFavCreditLimit',
    label: '累计得到授信未结算金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedGrantFavCreditLimit',
    label: '累计对外授信使用金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGrantFavCreditLimit',
    label: '累计对外授信已结算金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedUnsettledGrantFavCreditLimit',
    label: '累计对外授信未结算金额',
    align,
    width,
    isLink
  }]
}

export const supplierObtainTableOption = {
  name: 'supplierTableOption',
  columns: [{
    prop: 'organizationName',
    label: '机构名称',
    align,
    fixed: true,
    width
  }, {
    prop: 'organizationId',
    label: '机构编号',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgTypeName',
    label: '机构类型',
    align,
    fixed: true,
    width
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '已用得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'residueGetFavCreditLimit',
    label: '剩余得到授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedGrantFavCreditLimit',
    label: '累计得到授信使用金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGrantFavCreditLimit',
    label: '累计得到授信已结算金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGrantFavCreditLimit',
    label: '累计得到授信未结算金额',
    align,
    width,
    isLink
  }]
}

export const supplierForeignTableOption = {
  name: 'supplierTableOption',
  columns: [{
    prop: 'organizationName',
    label: '机构名称',
    align,
    fixed: true,
    width
  }, {
    prop: 'organizationId',
    label: '机构编号',
    align,
    fixed: true,
    width
  }, {
    prop: 'orgTypeName',
    label: '机构类型',
    align,
    fixed: true,
    width
  }, {
    prop: 'getFavCreditLimit',
    label: '授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'usedGetFavCreditLimit',
    label: '已用授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'residueGetFavCreditLimit',
    label: '剩余授信优惠额度',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedGetFavCreditLimit',
    label: '累计授信使用金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedsettledGetFavCreditLimit',
    label: '累计授信已结算金额',
    align,
    width,
    isLink
  }, {
    prop: 'accumUsedUnsettledGetFavCreditLimit',
    label: '累计授信未结算金额',
    align,
    width,
    isLink
  }]
}

export default {
  chainTableOption,
  supplierObtainTableOption,
  supplierForeignTableOption
}
